
#include "paths.h"
const QString prefix = INSTALL_PREFIX;
namespace Wishmaster
{
	namespace DefaultPath
	{
#if defined(UNIX)
		QString WISHMASTER_EXPORT hunspellDictionaries()
		{
			return QString("/usr/share/myspell");
		}

		QString WISHMASTER_EXPORT shareRoot()
		{
			return prefix + "/share/wishmaster";
		}
		QString WISHMASTER_EXPORT i18n()
		{
			return prefix + "/share/wishmaster/i18n";
		}
		QString WISHMASTER_EXPORT storageRoot()
		{
			return QDir::homePath() + "/.local/share/wishmaster";
		}

		QString WISHMASTER_EXPORT templates()
		{
			return shareRoot() + QDir::separator() + "templates";
		}

		QString WISHMASTER_EXPORT pluginsDir()
		{
			return prefix + QDir::separator() + "lib" + QDir::separator() + "wishmaster" + QDir::separator() + "plugins";
		}

		QString WISHMASTER_EXPORT parserPlugins()
		{
			return pluginsDir() + QDir::separator() + "boardparsers";
		}

		QString WISHMASTER_EXPORT agentPlugins()
		{
			return pluginsDir() + QDir::separator() + "chanagents";
		}

		QString WISHMASTER_EXPORT notificatorPlugins()
		{
			return pluginsDir() + QDir::separator() + "notificators";
		}

		QString WISHMASTER_EXPORT captchaFetcherPlugins()
		{
			return pluginsDir() + QDir::separator() + "captchafetchers";
		}

#elif defined(WIN32)
		QString WISHMASTER_EXPORT hunspellDictionaries()
		{
			return "spellcheck";
		}
		QString WISHMASTER_EXPORT shareRoot()
		{
			return prefix;
		}
		QString WISHMASTER_EXPORT i18n()
		{
			return "i18n";
		}
		QString WISHMASTER_EXPORT storageRoot()
		{
			return QDir::homePath() + QDir::separator() + "Application Data" +
									QDir::separator() + "wishmaster";
		}
		QString WISHMASTER_EXPORT templates()
		{
			return "templates";
		}

		QString WISHMASTER_EXPORT pluginsDir()
		{
			return "plugins";
		}

		QString WISHMASTER_EXPORT parserPlugins()
		{
			return pluginsDir() + QDir::separator() + "boardparsers";
		}

		QString WISHMASTER_EXPORT agentPlugins()
		{
			return pluginsDir() + QDir::separator() + "chanagents";
		}

		QString WISHMASTER_EXPORT notificatorPlugins()
		{
			return pluginsDir() + QDir::separator() + "notificators";
		}

		QString WISHMASTER_EXPORT captchaFetcherPlugins()
		{
			return pluginsDir() + QDir::separator() + "captchafetchers";
		}
#endif
	}
}
